<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
	<title>显示所有学生信息</title>
</head>
<body>
<a href="addStudent.jsp">添加学生</a>

<table>
	<tr><td>学号</td><td>姓名</td><td>性别</td><td>编辑</td></tr>
	<c:forEach items="${allStudents}" var="student">
		<form name='form' action='showUpdateInfoServlet'>

			<tr>
				<td>${student.num}</td>
				<td>${student.name }</td>
				<td>${student.gender }</td>
				<td>
					<a href='findStudentBynumServlet?num=${student.num}'>修改</a>
					<a href='deleteStudentServlet?num=${student.num}'>删除</a>
				</td>
			</tr>
		</form>
	</c:forEach>
	</tbody>
</table>
</body>
</html>
